/*components/index.js*/
import Header from './Header'
import Footer from './Footer'
import PublicHeader from './PublicHeader'

function commonComponents(Vue) {
    // 检查是否已经全局安装了这些组件
    if (commonComponents.install) return

    Vue.component('Header', Header)
    Vue.component('Footer', Footer)
    Vue.component('PublicHeader', PublicHeader)
}

export  default  commonComponents